package com.wjs.gulimall.cart.Feigin;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

/**
 * 远程调用product接口
 */
@FeignClient("gulimall-product")
public interface ProductFeign {
    @RequestMapping("/gulimallproduct/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

    @GetMapping("/gulimallproduct/skusaleattrvalue/stringList/{skuId}")
    public List<String> getSkuSaleAttrValues(@PathVariable("skuId")Long skuId);

    @GetMapping("/gulimallproduct/skuinfo/{skuId}/price")
    public BigDecimal getPriceBySkuId(@PathVariable("skuId")Long skuId);
}
